/********************************************************************
	filename: 	playlistmanager.h
	author:		zouyf
	created:	2009-9-20  12:21:43
	describ:

*********************************************************************/
#pragma once

#include "../uitls.h"

class FPlayListManager : public IPlayListManager
{
public:
	FPlayListManager();
	~FPlayListManager();
public:
	void Init(IApplication *pApp);
	virtual int GetPlayListCount();
	virtual IPlayList* GetPlayList(int Idx);
	virtual IPlayList* GetCurPlayList();
	virtual void SetCurPlayList(IPlayList* pPlayList);
	virtual IPlayList* AddPlayList(const wchar_t* pName);
	virtual BOOL DelPlayList(IPlayList*);
	virtual BOOL DelPlayList(int Idx);
	virtual IApplication* GetApplication();

private:
	std::vector<IPlayList*> m_playListVec;
	IPlayList	*m_pCurPlayList;
	IApplication *m_pApp;
};
